#region Using directives
using System;
#endregion

namespace SharpWind.Graphics.Settings
{
	public class DisplayMode
	{
		#region Fields

		private Microsoft.DirectX.Direct3D.DisplayMode displayMode;

		private int bitsPerPixel;

		#endregion

		#region Properties

		public Microsoft.DirectX.Direct3D.DisplayMode Mode
		{
			get
			{
				return this.displayMode;
			}
			internal set
			{
				this.displayMode = value;
			}
		}

		public int BitsPerPixel
		{
			get
			{
				return this.bitsPerPixel;
			}
			internal set
			{
				this.bitsPerPixel = value;
			}
		}

		#endregion

		#region Methods

		public override string ToString()
		{
			return string.Format( "{0}x{1}", this.displayMode.Width, this.displayMode.Height );
		}

		#endregion
	}
}
